-- GENERATED SPELL FOR [Lothros] --


function spell0_21928(pUnit, Event) --@Curse of Blood,n/a--
pUnit:FullCastSpellOnTarget(38167,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21928', 2000, 1)
end

function spell1_21928(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(38166,pUnit)
pUnit:RegisterEvent('Sorts_21928', 30309, 1)
end

function Sorts_21928(pUnit, Event)
local choix_sorts_21928 = math.random(0, 1)
if choix_sorts_21928 == 0 then
pUnit:RegisterEvent('spell0_21928', 1, 1)
end
if choix_sorts_21928 == 1 then
pUnit:RegisterEvent('spell1_21928', 1, 1)
end
end

function mob21928_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21928', math.random(1500, 3000), 1)
end

function mob21928_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21928_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21928_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21928, 1, 'mob21928_Action')
RegisterUnitEvent(21928, 2, 'mob21928_Leave')
RegisterUnitEvent(21928, 3, 'mob21928_Kill')
RegisterUnitEvent(21928, 4, 'mob21928_Die')
